﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<zeus.Core.Leyenda>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <h2>Editar Leyenda</h2>

     <% Html.EnableClientValidation(); %>

     <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Nombre) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Nombre) %>
            <%: Html.ValidationMessageFor(model => model.Nombre) %>
        </div>

        <%: Html.HiddenFor(model => model.CodigoEvento) %>
        <%: Html.HiddenFor(model => model.CodigoUnidad) %>

        <p>
            <input type="submit" value="Guardar" />
            
            <input type="button" onclick="javascript:document.location.href='<%= ResolveUrl("~") %>Recursos/Leyendas/<%: Model.CodigoUnidad %>'" value="Cancelar" />            
        </p>

    <% } %>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
    <script language="javascript" type="text/javascript">
        $(function () {
            $("#navbar").hide();
        }
    </script>

    <title>Editar Leyenda</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
</asp:Content>
